import * as db from './util/db.js';
import * as util from './util/util.js';
let userInfo = db.get("userInfo") || {}
let isLogin = JSON.stringify(userInfo) != "{}"

App({
  onLaunch() {
    //初始化云开发环境操作
    wx.cloud.init({
      env: 'server-2g5kpvip4c66dcf9',
      traceUser: true
    })
  },
  $db: db,
  $util: util,
  globalData: {
    nonetwork: false,
    userInfo: userInfo,
    isLogin: isLogin
  }
})